package com.design.future;

public class Client {
    public Data request(final String string) {
        final FutureData futureData = new FutureData();
        new Thread(new Runnable() {
            @Override
            public void run() {
                // RealData????????????????????????????????
                RealData realData = new RealData(string);
                futureData.setRealData(realData);
            }
        }).start();
        return futureData; // ????????FutureData
    }
}
